import React from 'react'
import {Route, Link} from 'react-router-dom'
import ChildRouteComp from './ChildRouteComp'
import PropTypes from 'prop-types'

export default function RouteComp1(props) {
  return (
    <div>
      {/* <h2>{props.m}---{props.n}</h2> */}
      <h2>RouteComp1</h2>
      <Link to="/rc1/child">显示子路由界面</Link>
      <hr />
      <Route path="/rc1/child" component={ChildRouteComp}></Route>
    </div>
  )
}

// RouteComp1.propTypes = {
//   m: PropTypes.string.isRequired,
//   n: PropTypes.number.isRequired
// }
